package cool.houge.pig.service.webhook;

import lombok.Getter;

/**
 * 回调状态异常.
 *
 * @author KK (kzou227@qq.com)
 */
public class WebhookStatusException extends WebhookException {

  /** 预期状态. */
  @Getter private final int expectedStatus;
  /** 实际状态. */
  @Getter private final int actualStatus;

  /**
   * @param url
   * @param expectedStatus
   * @param actualStatus
   */
  public WebhookStatusException(String url, int expectedStatus, int actualStatus) {
    super(url);
    this.expectedStatus = expectedStatus;
    this.actualStatus = actualStatus;
  }
}
